package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("stu_com")
public class StuCom implements Serializable {
    @TableId(value = "id")
    private Integer id;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Competition competition;

    private String image;
    private Integer status;
    /*这里加上cid属性是为了在前端的颁奖那里的 @click="updateById(scope.row.student.id,scope.row.cid)"函数不能写成
     * @click="updateById(scope.row.student.id,scope.row.competition.id),不能有两个参数都叫id，所以后端必须映射到cid属性上，
     * 而不能映射到competition对象的id属性上*/
    private Integer cid;

}
